package br.inf.solutions.apresentacoes.ssp.control.basics;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import br.com.vexillum.util.Return;
import br.inf.solutions.apresentacoes.ssp.model.basics.Garrison;
@Service
@Scope("prototype")
public class GarrisonController extends BasicFormsController<Garrison> {

	public GarrisonController() {
		super(Garrison.class);
	}
	
	public Return getGarrisons() {
		Return ret = new Return(true);
		String sql = "FROM " + classEntity.getSimpleName() + " WHERE active = true ORDER BY name ASC";
	 	data.put("sql", sql);
		ret.concat(searchByHQL());
		return ret;
	}
}
